<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Nonghang {

    // 接口域名
    // private $hostName = 'http://connect.nicezhuanye.com/';
    
    // 接口地址
    private $apiUrl = "http://192.168.1.111:82:8001/ex/";
    private $appkey = "42060C";

	public function __construct() {
    }


    // 获取学生信息
    public function get_school_student_备份($schoolId = 0){
        $url = $this->apiUrl. "GetUserFilePageList";
       $postData = $this->get_post_data($schoolId);
        
        $postData = json_encode($postData);
        $result = $this->post_haozhuanye($url, $postData);
        $result = '{
            "Data": [
                {
                    "id": "0000005472",
                    "user_name": "宋齐",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "2016-12-12",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": "2016-12-12",
                    "class_kind": "0",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00017",
                    "depart_name": "上海研修中心/后勤保障部",
                    "department": "后勤保障部",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "2015/5/5 0:00:00",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": "2016-12-12",
                    "pact_end": "2016-12-12",
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "0",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "004",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "",
                    "using_cardnum": "0",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "2016-12-12",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005471",
                    "user_name": "王梅",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "29",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13917617659",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "371102198603060723",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "154.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "女",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "154",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005470",
                    "user_name": "周裕洋",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "29",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13951101352",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "320503199803092255",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "152.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "男",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "152",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005469",
                    "user_name": "梅芸",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "29",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13564236034",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "310115198907225224",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "151.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "女",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "151",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005468",
                    "user_name": "顾沩清",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "29",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13817508935",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "310115198708175623",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "150.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "女",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "150",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005467",
                    "user_name": "万仕诚",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "29",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "15021824547",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "310115199404076014",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "149.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "男",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "149",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005466",
                    "user_name": "朱欣悦",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "15",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "15800951087",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "310102199101171645",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "144.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "女",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "144",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005465",
                    "user_name": "孙乾勒",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "15",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13818306686",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "330382198701264716",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "143.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "男",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "143",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005464",
                    "user_name": "陆宇佳",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "5",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "19821360865",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "31011519951025841X",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "140.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "男",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "140",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                },
                {
                    "id": "0000005463",
                    "user_name": "何韦皓",
                    "account": "",
                    "account_time": null,
                    "act_type": null,
                    "addclass_flag": null,
                    "alam_flag": null,
                    "approach_time": null,
                    "bank_account": "",
                    "begin_date": null,
                    "belong_group": null,
                    "birthday": "1900-01-01",
                    "blood_type": null,
                    "car_color": null,
                    "car_kind": null,
                    "car_label": null,
                    "car_num": null,
                    "car_userkind": null,
                    "card_id": "",
                    "card_price": "0.00",
                    "card_type": null,
                    "cardno": null,
                    "child_birthday": null,
                    "class_kind": "3",
                    "college": "",
                    "cp": null,
                    "create_time": null,
                    "cw_num": null,
                    "degree": "",
                    "demo": "",
                    "depart_id": "00194",
                    "depart_name": "2023年分行培训班/2023年分行网点对公业务转型培训班/2023年分行网点对公业务转型培训班（11月20-24日）",
                    "department": "2023年分行网点对公业务转型培训班（11月20-24日）",
                    "dm_status": null,
                    "dorm_status": null,
                    "em_status": null,
                    "email": "",
                    "end_date": null,
                    "excellent_flag": null,
                    "exit_time": null,
                    "farther_depart": null,
                    "file_using": null,
                    "finish_school": "",
                    "gj": null,
                    "group_name": null,
                    "gz": null,
                    "h_address": "",
                    "h_arrive_time": null,
                    "h_children_number": null,
                    "h_company": "",
                    "h_left_time": null,
                    "h_postid": "",
                    "h_rank": null,
                    "h_telephonenumber": "",
                    "hand_tel": "13122250969",
                    "hk_address": "",
                    "hmd_flag": null,
                    "hz_num": null,
                    "id_kind": null,
                    "idcard": "14020219970819103X",
                    "is_safety_training": null,
                    "kind_name": null,
                    "kq_type": null,
                    "lan": null,
                    "last_time": null,
                    "lastlogintime": null,
                    "left_money": "0.00",
                    "life_area": null,
                    "like_gp": null,
                    "like_kw": null,
                    "like_mt": null,
                    "like_other": null,
                    "like_sj": null,
                    "like_yl": null,
                    "marry": "",
                    "mj_flag": null,
                    "modify_time": null,
                    "nation": "",
                    "native_place": "",
                    "number": null,
                    "old_cp": null,
                    "old_id": null,
                    "oper_name": null,
                    "operator_name": null,
                    "out_id": null,
                    "pact_begin": null,
                    "pact_end": null,
                    "passport_no": null,
                    "password": "",
                    "pay_level": null,
                    "person_info": null,
                    "photo": "135.jpg",
                    "physical_examination_date": null,
                    "point_id": null,
                    "polit_face": "",
                    "post_id": "1",
                    "post_name": null,
                    "profession": "",
                    "qrcode": null,
                    "role_id": "0",
                    "role_name": null,
                    "room_kind": null,
                    "room_name": null,
                    "send_date": null,
                    "send_oper": "",
                    "send_reason": null,
                    "send_type": null,
                    "sex": "男",
                    "sh_oper": null,
                    "skin": null,
                    "snr": null,
                    "sort_id": null,
                    "special_work_license": null,
                    "tech_post": "",
                    "tel1": null,
                    "theme": null,
                    "used_flag": null,
                    "user_id": null,
                    "user_kind": "008",
                    "user_kind1": null,
                    "user_kind_id": null,
                    "userid_num": "135",
                    "using_cardnum": "",
                    "visa_expiration_date": null,
                    "visa_type": null,
                    "visa_type_name": null,
                    "work_area": null,
                    "work_begin": "1970-01-01",
                    "work_license_endtime": null,
                    "work_license_num": null,
                    "work_meal": null,
                    "work_name": null,
                    "work_status": null,
                    "work_type": "01",
                    "x": null,
                    "y": null,
                    "yj1": null,
                    "yj2": null,
                    "yj3": null,
                    "yj4": null,
                    "ywy_flag": null,
                    "ywy_id": null,
                    "zw_id": null
                }
            ],
            "ErrorCode": null,
            "Ex": 4229,
            "Message": null,
            "Num": null,
            "Success": true,
            "Type": "Ex_GetUserFilePageList"
        }';
  

        return json_decode($result, true);
    }

    // 获取学生信息
    public function get_school_student($schoolId = 0){
        $url = $this->apiUrl. "GetUserFilePageList";
        $timeStamp = time();
        $sign = md5($timeStamp . $this->appkey);
        $postData = array(
            'timestamp' => time(),
            'pageSize' => 2000,
            'sign' => $sign
        );
        
        // $postData = json_encode($postData);
        // var_export($postData);exit;
        $result = $this->post($url, $postData);

        // var_export($result);exit;

        return json_decode($result, true);
    }
    // 提交数据到服务器
    function post($url, $data){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
        curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, false);

        $tmpInfo = curl_exec($ch);
        if(curl_errno($ch)) return curl_error($ch);
        curl_close($ch);
        return $tmpInfo;
    }
}
